package com.tmc.bean.intcar;

/**
 * @author zhang
 * @date 2017年12月26日 下午7:01:27 
 */
public class EthQueryDriverResp {
	
	private boolean success;
	private String message;
	private EthDriver driver;
	
	
	public EthQueryDriverResp() {
		super();
	}
	
	public EthQueryDriverResp(boolean success, String message, EthDriver driver) {
		super();
		this.success = success;
		this.message = message;
		this.driver = driver;
	}
	
	public static EthQueryDriverResp makeFail(String message){
		return new EthQueryDriverResp(false, message, null);
	}
	
	public static EthQueryDriverResp makeSuccess(String message, EthDriver driver){
		return new EthQueryDriverResp(true, message, driver);
	}
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public EthDriver getDriver() {
		return driver;
	}
	public void setDriver(EthDriver driver) {
		this.driver = driver;
	}

}
